from flask import Flask,render_template,request
import pymysql
count = pymysql.connect(
    
)
app = Flask(__name__)
# http://127.0.0.1:5000/log
@app.route('/log')
def login():
    return render_template('login.html')
@app.route('/getName')
def getName():
    name='张三、里斯、王五'
    return name
@app.route('/index')
def index():
    uname = request.args.get("uname")
    pwd = request.args.get("pwd")
    return f"主页,welcome {uname}"
app.run()